package com.zmn.oms.third.callcenter;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 类描述：呼叫中心接口类常量
 *
 * @author lhl
 * @date 2020/02/19 1:32
 */
@Component
public class CallCenterConstants {

    public static final String NAME_CALL_CENTER_API = "呼叫中心接口";

    // 添加订单接口路径
    public static final String PATH_ADD_ORDER = "/open/information/center/channel/push";
    //public static final String PATH_ADD_ORDER = "/ccc/api/clue/addClue";

    public static String API_URL_OLD;
    public static String API_URL;
    public static String SECRET;

    @Value("${call-center.new-api.url:null}")
    public void setApiUrl(String apiUrl) {
        API_URL = apiUrl;
    }

    @Value("${call-center.api.url:null}")
    public void setApiUrlOld(String apiUrl) {
        API_URL_OLD = apiUrl;
    }

    @Value("${call-center.api.secret:null}")
    public void setSecret(String secret) {
        SECRET = secret;
    }
}
